define('formReception',['text!../tpl/form-reception.html','tool','vSelect','common','upcaseMoney','bootstrap'],function(Template,tool,vSelect,common,upcaseMoney){
	console.log('vSelect',vSelect)
    var App ={
    	template:Template,
    	components:{'v-select':vSelect.VueSelect},
    	mixins: [tool.toor,common.common],
    	mounted:function(){
    		var _this=this;
    	},
    	data:function(){
    		return{
    			money:0,
    			submitJson:{
				    "component": [
					    {
	    			   	  "name":"接待时间",
	    			   	  "value":''
	    			   },
	    			   {
	    			   	   "name": "接待详情",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "接待类型",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "预算费用(元)",
					       "value": 0
	    			   },
	    			   {
	    			   	   "name": "大写",
					       "value": ''
	    			   }
				    ]
				}
    			
    		};
    	},
    	watch:{
    		submitJson:
    		{
    			handler: function (val, oldVal) {
    				if(val.component[1].value)
    				{
    					val.component[0].value=new Date(val.component[0].value).Format('yyyy-MM-dd');
    				};
    				val.component[4].value=upcaseMoney(val.component[3].value);
    			},
                deep: true
    		}
    	},
    	methods:
    	{
    		typeFn:function(data){
    			this.submitJson.component[2].value=data.join(';');
    		},
    		getFilefn:function(data)
    		{
    		}
    	}
    };
    return {
        app:App       
    };
});